package com.threeti.mecool.framework.web.form;

import com.threeti.mecool.framework.util.DynaCriteriaBuilder;
import com.threeti.mecool.framework.util.DynaSearchCriteria;

/** @author Jay Meng */
public abstract class AbstractSearchCriteriaForm extends AbstractForm {

  //alternative sophisticated way->
  public final DynaSearchCriteria extractSearchCriteria(Class targetCriteriaClazz) {
    return DynaCriteriaBuilder.buildDynaSearchCriteriaBy(targetCriteriaClazz, this).postInit();
  }
  //<-

  //default degraded method->
  public boolean hasAnyConditionInputed() {
    return false;
  }

//  public AbstractSearchCriteriaForm postInit() {
//    return this;
//  }
  //<-
}

